<template>
  <div>
    手机的内容组件
    <input type="button" @click="num++" :value="num">
  </div>
</template>

<script>
export default {
  name:"Phone",
  data() {
    return {
      num:0
    }
  },
  created(){
    console.log("phone组件创建");
  },
  mounted(){
    console.log("phone组件挂载");
  },
  unmounted(){
    console.log("phone组件卸载");
  },
  activated(){
    console.log("phone组件被激活");
  },
  deactivated(){
    console.log("phone组件被冻结");
  }
}
</script>